package GameElements.Elements;

import java.util.Vector;

import GameBoard.GameBoard;
import GameElements.Tile;
import Utils.Point3D;

public class Street extends Element
{	
	public Street(Vector<Tile> ensTile, Vector<Point3D> chemin) 
	{
		this.ensTile = ensTile;
		this.chemin = chemin;
		scoreDonneInComplete = ensTile.size() * 1;
		System.out.println("street complete");
	}

	public int getType() 
	{
		return Tile.street;
	}

	@Override
	public Vector<Tile> getEnsTileContentPawn(Tile[][] table) 
	{
		Vector<Tile> ensTileContentPawn = new Vector<Tile>();
		for(int i=0; i<chemin.size(); i++)
		{
			Point3D p = chemin.get(i);
			Tile t = table[p.x][p.y];
			if(t.getPawn(p.z) != null)
				ensTileContentPawn.add(t);
		}
		return ensTileContentPawn;
	}

}
